﻿
using System;
using System.Text.Json.Serialization;

namespace Xc.DataAccess.AepCoapCore.Models
{
    public class AepInfoBasicBody<TBody> : AepInfoBasic
    {
        public TBody Body { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonIgnore]
        internal string BodyString => System.Text.Json.JsonSerializer.Serialize(Body);
    }
    public class ImeiInfo : AepInfoBasic
    {
        public string Imei { get; set; }
    }
    public class MasterKeyInfo : AepInfoBasic
    {
        public string MasterKey { get; set; }
    }
    public class MasterKeyInfo<Tbody>: AepInfoBasicBody<Tbody>
    {
        public string MasterKey { get; set; }
    }
    public class QueryCommandList: MasterKeyInfo, IPageInfo
    {
        public string Status { get; set; }
        public string ProductId { get; set; }
        public string SearchValue { get; set; }
        public string DeviceId { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
        public int? PageNow { get; set; }
        public int? PageSize { get; set; }
        public string GroupCommandId { get; set; }

    }
}